import request from '@/utils/request'

// 查询采购订单总列表
export function listNcPurchaseOrderTotal(query) {
  return request({
    url: '/sales/NcPurchaseOrderTotal/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单总详细
export function getNcPurchaseOrderTotal(id) {
  return request({
    url: '/sales/NcPurchaseOrderTotal/' + id,
    method: 'get'
  })
}

// 新增采购订单总
export function addNcPurchaseOrderTotal(data) {
  return request({
    url: '/sales/NcPurchaseOrderTotal',
    method: 'post',
    data: data
  })
}

// 修改采购订单总
export function updateNcPurchaseOrderTotal(data) {
  return request({
    url: '/sales/NcPurchaseOrderTotal',
    method: 'put',
    data: data
  })
}

// 删除采购订单总
export function delNcPurchaseOrderTotal(id) {
  return request({
    url: '/sales/NcPurchaseOrderTotal/' + id,
    method: 'delete'
  })
}
